package tools;

import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;

import entitybean.oc_evaluate.EntityBeanOc_Evaluate;

public class InterfaceEvaluateList {
	public List<EntityBeanOc_Evaluate> ViewOc_News(ResultSet rs)
	{
		
		List<EntityBeanOc_Evaluate> list =new ArrayList<EntityBeanOc_Evaluate>();
		try {
			Integer i=1;
			while(rs.next())
		{				
				EntityBeanOc_Evaluate viewoc_news=new EntityBeanOc_Evaluate();
				viewoc_news.setId(Integer.valueOf(rs.getString("ID")));
				viewoc_news.setNews_title(rs.getString("news_title"));
				viewoc_news.setUpdate_time(rs.getDate("update_time"));
				list.add(viewoc_news);
				i=i+1;
		}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return list;
		
	}
}
